#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*int func(int *p_arr) {
    return *p_arr = rand() % 36 + 1;
}
int main() {
    srand(time(0));
    int arr[7] = {}, num = 0;
    int *p_arr = arr;
    for (num = 0; num <= 6; num++) {
	printf("%d ", func(&(*p_arr)));
    }
    printf("\n");*/
int lottery[7];
void creat() {
    int num = 0;
    for (num = 0; num <= 6; num++) {
	lottery[num] = rand() % 36 + 1;
    }
}
int main() {
    int num = 0;
    srand(time(0));
    creat();
    for(num = 0; num <= 6; num++) {
	printf("%d ", lottery[num]);
    }
    printf("\n");
    return 0;
}
